package main.java.pers.seg.model.model;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
/**
 * Created by 金珉志
 */
public class View implements Serializable {

    private static final long serialVersionUID = -7998612340542498872L;

    String type;

    String id;

    String idName;

    List<View> viewList;

    List<EventAndHandler> eventAndHandlerList;

    @XmlAttribute(name="type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @XmlAttribute(name="id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @XmlAttribute(name="idName")
    public String getIdName() {
        return idName;
    }

    public void setIdName(String idName) {
        this.idName = idName;
    }

    public List<View> getViewList() {
        return viewList;
    }

    public void setViewList(List<View> viewList) {
        this.viewList = viewList;
    }

    public List<EventAndHandler> getEventAndHandlerList() {
        return eventAndHandlerList;
    }

    public void setEventAndHandlerList(List<EventAndHandler> eventAndHandlerList) {
        this.eventAndHandlerList = eventAndHandlerList;
    }

    public View(String type, String id, String idName, List<View> viewList, List<EventAndHandler> eventAndHandlerList) {
        this.type = type;
        this.id = id;
        this.idName = idName;
        this.viewList = viewList;
        this.eventAndHandlerList = eventAndHandlerList;
    }

    public View() {
    }
}
